<?php
$search=$_GET["search"];
$price1=$_GET["price1"];
$price2=$_GET["price2"];
$link=mysqli_connect("localhost","root","","mysql");
mysqli_set_charset($link,"utf8");
$sql="select *from adidasi where goods_price>='$price1' and goods_price<='$price2' and  goods_name like '%$search%'";
$result=mysqli_query($link,$sql);
$arr=[];
while($row=mysqli_fetch_assoc($result)){
    array_push($arr,$row);
}
echo json_encode($arr);
mysqli_close($link);
?>